package com.fenghongzhang.day006;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;


/**
 * A simple {@link Fragment} subclass.
 */
public class BlankFragment2 extends Fragment {

    public BlankFragment2() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View inflate = inflater.inflate(R.layout.fragment_blank2, container, false);
        TextView viewById = inflate.findViewById(R.id.fg_text);
        
        //getAurgemtn
        Bundle arguments = getArguments();
        if (arguments != null){
            String name = arguments.getString("name");
            viewById.setText(name);
        }

//        viewById.setText(?);
        return inflate;
    }
}
